package com.luke.base.service.impl;

import java.util.List;
import com.luke.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.luke.base.mapper.LkProblemMapper;
import com.luke.base.domain.LkProblem;
import com.luke.base.service.ILkProblemService;

/**
 * 问题反馈Service业务层处理
 * 
 * @author luke
 * @date 2021-06-02
 */
@Service
public class LkProblemServiceImpl implements ILkProblemService 
{
    @Autowired
    private LkProblemMapper lkProblemMapper;

    /**
     * 查询问题反馈
     * 
     * @param id 问题反馈ID
     * @return 问题反馈
     */
    @Override
    public LkProblem selectLkProblemById(Long id)
    {
        return lkProblemMapper.selectLkProblemById(id);
    }

    /**
     * 查询问题反馈列表
     * 
     * @param lkProblem 问题反馈
     * @return 问题反馈
     */
    @Override
    public List<LkProblem> selectLkProblemList(LkProblem lkProblem)
    {
        return lkProblemMapper.selectLkProblemList(lkProblem);
    }

    /**
     * 新增问题反馈
     * 
     * @param lkProblem 问题反馈
     * @return 结果
     */
    @Override
    public int insertLkProblem(LkProblem lkProblem)
    {
        lkProblem.setCreateTime(DateUtils.getNowDate());
        return lkProblemMapper.insertLkProblem(lkProblem);
    }

    /**
     * 修改问题反馈
     * 
     * @param lkProblem 问题反馈
     * @return 结果
     */
    @Override
    public int updateLkProblem(LkProblem lkProblem)
    {
        return lkProblemMapper.updateLkProblem(lkProblem);
    }

    /**
     * 批量删除问题反馈
     * 
     * @param ids 需要删除的问题反馈ID
     * @return 结果
     */
    @Override
    public int deleteLkProblemByIds(Long[] ids)
    {
        return lkProblemMapper.deleteLkProblemByIds(ids);
    }

    /**
     * 删除问题反馈信息
     * 
     * @param id 问题反馈ID
     * @return 结果
     */
    @Override
    public int deleteLkProblemById(Long id)
    {
        return lkProblemMapper.deleteLkProblemById(id);
    }
}
